package com.xnyzc.lhy.common.penum;


import com.xnyzc.lhy.common.entity.PEnum;

/**
 * 微信缓存类型
 *
 * @Date: 2018/12/4 16:34
 */
public enum EWechatType implements PEnum<String> {
    info("用户信息", "_R_WECHAT_USER_"), phone("电话", "_R_WECHAT_PHONE_"), unionId("unionId", "_R_WECHAT_UNIONID_");

    private String desc;
    private String redisKey;

    EWechatType(String desc, String redisKey) {
        this.desc = desc;
        this.redisKey = redisKey;
    }

    @Override
    public String getValue() {
        return name();
    }

    @Override
    public String toString() {
        return name();
    }

    @Override
    public String toChString() {
        return desc;
    }

    public String getRedisKey() {
        return redisKey;
    }
}
